package cate.game.role.farm.island.po;

import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("主角位置")
public class Coordinate{

    @NoteField("横坐标")
    public int x;

    @NoteField("关卡")
    public int level;

    public Coordinate(int x, int level) {
        this.x = x;
        this.level = level;
    }

    public Coordinate() {}

    public void setCoorDinate(int x, int level) {
        this.x = x;
        this.level = level;
    }

    /**
     * 向前移动一格
     *
     * @param x
     */
    public void move(int x) {
        this.x = x;
        this.level++;
    }
}
